//获取医院分页query参数类型
export interface getHosListParamsType {
  hoscode?: string;
  hosname?: string;
  hostype?: string;
  provinceCode?: string;
  cityCode?: string;
  districtCode?: string;
  status?: 0 | 1;
}

//数据中bookingRule类型
export interface BookingRule {
    cycle: number;
    releaseTime: string;
    stopTime: string;
    quitDay: number;
    quitTime: string;
    rule: string[];
}
//获取医院分页返回数据中content中的每一项类型
export interface getHosListReturnContentItemType {
  id: string;
  createTime: string;
  updateTime: string;
  isDeleted: number;
  param: {
    hostypeString: string;
    fullAddress: string;
  };
  hoscode: string;
  hosname: string;
  hostype: string;
  provinceCode: string;
  cityCode: string;
  districtCode: string;
  address: string;
  logoData: string;
  intro: string;
  route: string;
  status: 0 | 1;
  bookingRule: BookingRule | null
}
//content类型
export type getHosSetReturnContentType = getHosListReturnContentItemType[];
//获取医院分页返回值类型
export interface getHosListReturnType {
  content: getHosSetReturnContentType;
  pageable: {
    sort: {
      sorted: boolean;
      unsorted: boolean;
      empty: boolean;
    };
    pageNumber: number;
    pageSize: number;
    offset: number;
    paged: boolean;
    unpaged: boolean;
  };
  totalElements: number;
  totalPages: number;
  last: boolean;
  first: boolean;
  sort: {
    sorted: boolean;
    unsorted: boolean;
    empty: boolean;
  };
  numberOfElements: number;
  size: number;
  number: number;
  empty: boolean;
}

//获取省份返回值每一项类型
export interface getHosListProvinceItemType {
  id: number;
  createTime: string;
  updateTime: string;
  isDeleted: number;
  param: object;
  parentId: number;
  name: string;
  value: string;
  dictCode: string;
  hasChildren: boolean;
}
//获取省份返回值类型
export type getHosListProvinceReturn = getHosListProvinceItemType[]

//获取医院详情页返回类型
export interface getHosListDetailReturnType{
    hospital?:getHosListReturnContentItemType,
    bookingRule?:BookingRule
}